package com.example.li.mapper;

import com.example.li.model.Lawyer;
import com.example.li.model.Status;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface StatusMapper {
    int deleteByPrimaryKey(Status id);

    int insert(Status record);

    int insertSelective(Status record);

    Status selectByPrimaryKey(Status id);

    int updateByPrimaryKeySelective(Status record);

    int updateByPrimaryKey(Status record);

    List<Map>  chatList(Status record);

    List<Map> getChatList(Integer user_id);

    List<Map> getChatList1(Integer lawyer_id);

    Integer getChatCount(Integer user_id);

    int deleteChatList(Status record);

//    List<Map> selectAllChat(Status record);
}